const state = {
  email: sessionStorage.getItem('email') || '',
  token: sessionStorage.getItem('token') || '',
};

const mutations = {
  emailVal(state, { email, token }) {
    state.email = email;
    state.token = token;
    sessionStorage.setItem('email', email);
    sessionStorage.setItem('token', token);
  },
};

const actions = {};

const getters = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters,
};
